package com.ktmall.ktmalluijava.pojo;

import lombok.Getter;
import lombok.Setter;

import java.math.BigDecimal;

/**
 * @author ZhouShuang
 * @version 17
 * @Title
 * @date 2025/5/9 下午7:23
 */
@Getter
@Setter
public class Cart {
    private Integer id; //购物车id
    private Integer userId; //微信用户id
    private String skuId; //商品sku的id，用于引用t_sku_info表
    private Integer goodsCount; //商品数量
    private Integer selected; //选中状态
    private Integer enabled; //删除标识字段(0未删除，1已删除)
    private String createTime; //创建时间
    private String updateTime; //修改时间
    private  String username;//用户名
    private String goodsName; //商品名称
    private BigDecimal price;//当前价格
    private WxUser wxUser; //微信用户对象
    private Sku sku ; //sku对象
    public Cart(){

    }

    public Cart(Integer id, Integer userId, String skuId, Integer goodsCount, Integer selected, Integer enabled, String createTime, String updateTime, WxUser wxUser, Sku sku) {
        this.id = id;
        this.userId = userId;
        this.skuId = skuId;
        this.goodsCount = goodsCount;
        this.selected = selected;
        this.enabled = enabled;
        this.createTime = createTime;
        this.updateTime = updateTime;
        this.wxUser = wxUser;
        this.sku = sku;
    }
}
